/** @jsx React.DOM */
var React = require('react');
var request = require('superagent');

var Dialog = require('./dialog');

function onClick() {
	console.log(this.state.times);
}

request('../license.txt', function(res) {
	React.renderComponent(
		<Dialog width="400" title="用户协议" firstBtnName="同意" secondBtnName="拒绝" firstBtnAction={onClick}>
			<pre>
				{res.text}
			</pre>
		</Dialog>,
		document.getElementById('container')
	);
});
